<?php
//WeChat:base
return [
    'mini' => [//益虫星球小程序
        'url' => 'https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code',
        'step1' => 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=%s',
        'mobile' => 'https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=%s',
        'token' => 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s',
    ],
    'hwmini' => [//户外运动小程序
        'delivery_url' => 'https://api.weixin.qq.com/wxa/sec/order/upload_shipping_info?access_token=%s',//确认收货
        'token' => 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s',//获取token
    ],
    'wx' => [//公众号
        'url' => [
            'step1' => 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_userinfo&state=%s#wechat_redirect',
            'step2' => 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code',
            'step3' => 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s',
            'step4' => 'https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=%s',//模板消息
            'ticket' => 'https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi&access_token=%s',
        ]
    ],
    'mp' => [
        'appId' => 'wxbedf289e0321685f',
        'secret' => '659186660f9d2fbd2b4bb3d45bbdf4b4'
    ],
    'gz' => [//sm
        //'appId' => 'wx762e7f3b4c38adf5',//sm
        //'secret' => '9bb30d1e96a0ba7946b7171f94d19ec2',//sm
        'appId' => 'wx9eb0e71a0e599f0c',//zd
        'secret' => '0e6a2a66f6531c6eea2eb95ad838f937',//zd
        'url'=>'https://api.weixin.qq.com/cgi-bin/user/info?access_token=%s&openid=%s',
        'tokenUrl'=>'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s'
    ],
    'miniapp' => [
        'appId' => 'wx5d3c2d8a522e156f',
        'secret' => '979a586f4cf4c41d26793e22bcc75891',
    ],
    'stableToken' => 'https://api.weixin.qq.com/cgi-bin/stable_token'
];
